import store from "../../store/index";
const changeRoleInfo = () => {
  if (store.state.userType) {
    wx.setTabBarItem({
      index: 0,
      text: "首页",
      iconPath: "static/images/recruit/company-sele(1).png",
      selectedIconPath: "static/images/recruit/company-sele.png",
    });
    wx.setTabBarItem({
      index: 1,
      text: "岗位",
      iconPath: "static/images/recruit/company-sele(3).png",
      selectedIconPath: "static/images/recruit/company-sele(2).png",
    });
    wx.setTabBarItem({
      index: 2,
      text: "消息",
      iconPath: "static/images/recruit/company-sele(5).png",
      selectedIconPath: "static/images/recruit/company-sele(4).png",
    });
    wx.setTabBarItem({
      index: 3,
      text: "我的",
      iconPath: "static/images/recruit/company-sele(9).png",
      selectedIconPath: "static/images/recruit/company-sele(8).png",
    });
  } else {
    wx.setTabBarItem({
      index: 0,
      text: "首页",
      iconPath: "static/images/recruit/company-sele.png",
      selectedIconPath: "static/images/recruit/company-sele(1).png",
    });
    wx.setTabBarItem({
      index: 1,
      text: "人才",
      iconPath: "static/images/recruit/company-sele(1).png",
      selectedIconPath: "static/images/recruit/company-sele.png",
    });
    wx.setTabBarItem({
      index: 2,
      text: "岗位",
      iconPath: "static/images/recruit/company-sele(1).png",
      selectedIconPath: "static/images/recruit/company-sele.png",
    });
    wx.setTabBarItem({
      index: 3,
      text: "我的",
      iconPath: "static/images/recruit/company-sele(1).png",
      selectedIconPath: "static/images/recruit/company-sele.png",
    });
  }
};
export default changeRoleInfo;
